package com.yanqu.road.entity.log.cross.xingyou;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_c_log_xing_you_building_upgrade", autoSave = true, desc = "行游山水-建筑升级", eventName = "mouwater_mend", dataUpload = true, uploadCk = true, isCross = true)
public class LogCrossXingYouBuildingUpgrade extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(isIndex = true, desc = "分组id")
    private int groupId;
    @FieldTypeAnnotation(desc = "队伍ID", isIndex = true, dataAttribute = "team_id")
    private int teamId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "位置", dataAttribute = "mouwater_grid")
    private int pos;

    @FieldTypeAnnotation(desc = "格子", dataAttribute = "mouwater_build")
    private int gridId;

    @FieldTypeAnnotation(desc = "消耗银票", dataAttribute = "mouwater_siluse")
    private int cost;

    @FieldTypeAnnotation(desc = "道具数量", dataAttribute = "item_use")
    private String itemNum;

    @FieldTypeAnnotation(desc = "当前等级", dataAttribute = "mouwater_melev")
    private int curLv;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogCrossXingYouBuildingUpgrade(int activityId, int teamId, long userId, int pos, int gridId, int cost, String itemNum, int curLv) {
        this.activityId = activityId;
        this.teamId = teamId;
        this.userId = userId;
        this.pos = pos;
        this.gridId = gridId;
        this.cost = cost;
        this.itemNum = itemNum;
        this.curLv = curLv;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        this.teamId = teamId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        this.pos = pos;
    }

    public int getGridId() {
        return gridId;
    }

    public void setGridId(int gridId) {
        this.gridId = gridId;
    }

    public int getCost() {
        return cost;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }

    public String getItemNum() {
        return itemNum;
    }

    public void setItemNum(String itemNum) {
        this.itemNum = itemNum;
    }

    public int getCurLv() {
        return curLv;
    }

    public void setCurLv(int curLv) {
        this.curLv = curLv;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
